package kylin.entity;

import java.util.List;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.Type;

/**
 * <p>Class Name : DocInterfaceMethod</p>
 * <p>Class Desc : 接口文档方法表</p>
 * <p>Date : 2015-11-5 上午12:18:14</p>
 * <p>Author : XQL</p>
 */
@Entity
@Table(name="doc_interface_method")
public class DocInterfaceMethod {

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	private int id;//序号

	private String code;//接口编号
	
	private String name;//接口名称
	
	private String descs;//接口说明
	
	private String address;//接口地址
	
	private String way;//请求方式
	
	@Type(type="text")
	private String demo;//返回值示例
	
	private String remark;//备注
	
	@ManyToOne
	@JoinColumn(nullable=false,name="interface_id")
	private DocInterface docInterface;//接口文档ID

	@Transient
	private List<DocInterfaceParams> paramsList;
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescs() {
		return descs;
	}

	public void setDescs(String descs) {
		this.descs = descs;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getWay() {
		return way;
	}

	public void setWay(String way) {
		this.way = way;
	}

	public String getDemo() {
		return demo;
	}

	public void setDemo(String demo) {
		this.demo = demo;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public DocInterface getDocInterface() {
		return docInterface;
	}

	public void setDocInterface(DocInterface docInterface) {
		this.docInterface = docInterface;
	}

	public List<DocInterfaceParams> getParamsList() {
		return paramsList;
	}

	public void setParamsList(List<DocInterfaceParams> paramsList) {
		this.paramsList = paramsList;
	}

}
